package org.brisling.medical.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.brisling.base.domain.impl.BaseDomainExcludeId;
import org.brisling.base.domain.inf.BaseDomainInf;
import org.brisling.common.ConstSysParam;

import com.fasterxml.jackson.annotation.JsonFormat;


/**
 * 
 * 住院信息实体类
 * @author : jackson wang
 * @Date   : 2016年1月26日 上午10:01:07
 * @version: 1.0
 * 
 */
@Entity
@Table(name=ConstSysParam.MODULE_OUTPATIENT_FEE)
public class OutpatientFee extends BaseDomainExcludeId implements BaseDomainInf {

	/*
	 * 主键
	 */
	@Id
	@Column
	@GeneratedValue(strategy=GenerationType.TABLE,generator="outpatientFeeGenerator")
	@TableGenerator(name="outpatientFeeGenerator",
					table="sysman_generation_key",
					pkColumnValue=ConstSysParam.MODULE_OUTPATIENT_FEE,
					pkColumnName="primary_key",
					valueColumnName="key_value",
					allocationSize=1)
	private Long id;
	
	@Override
	public Long getId() {
		// TODO Auto-generated method stub
		return this.id;
	}


	@Override
	public void setId(Long id) {
		// TODO Auto-generated method stub
		this.id = id;
	}
	//科室编码
	private Long depart_code;
	
	//科室类别
	private String depart_type;
	
	//诊断id
	private String diagnosis_id;
	
	//诊断名称
	private String diagnosis_name;
	
	//医生代码
	private String doct_code;
	
	//科室代码
	private String doct_depart_code;
	
	//科室名称
	private String doct_depart_name;
	
	//药品代码
	private String drug_code;
	
	//药品名称
	private String drug_name;
	
	//药品规格
	private String drug_spec;
	
	//药品用法
	private String drug_unit;
	
	//计费时间
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date feeat;
	
	
	private String f_dep;
	
	private String f_dep_cod;
	
	//医院代码
	private String hospital_code;
	
	//医院名称
	private String hospital_name;
	
	//是否药品标志
	private String is_drug;
	
	//门诊序号
	private Long mzxh;
	
	//药品数量
	private Long num;
	
	//门诊号码
	private String outpatient_number;
	
	//患者姓名
	private String patient_name;
	
	//患者编号
	private Long patient_no;
	
	//处方号
	private String prescribe_code;
	
	//处方记录号
	private String prescribe_id;
	
	//单价
	private String price;
	
	private String sys_type;
	
	//总价
	private Double tatol_price;
	
	//用药周期
	private String use_day_num;

	public Long getDepart_code() {
		return depart_code;
	}


	public void setDepart_code(Long depart_code) {
		this.depart_code = depart_code;
	}


	public String getDepart_type() {
		return depart_type;
	}


	public void setDepart_type(String depart_type) {
		this.depart_type = depart_type;
	}


	public String getDiagnosis_id() {
		return diagnosis_id;
	}


	public void setDiagnosis_id(String diagnosis_id) {
		this.diagnosis_id = diagnosis_id;
	}


	public String getDiagnosis_name() {
		return diagnosis_name;
	}


	public void setDiagnosis_name(String diagnosis_name) {
		this.diagnosis_name = diagnosis_name;
	}


	public String getDoct_code() {
		return doct_code;
	}


	public void setDoct_code(String doct_code) {
		this.doct_code = doct_code;
	}


	public String getDoct_depart_code() {
		return doct_depart_code;
	}


	public void setDoct_depart_code(String doct_depart_code) {
		this.doct_depart_code = doct_depart_code;
	}


	public String getDoct_depart_name() {
		return doct_depart_name;
	}


	public void setDoct_depart_name(String doct_depart_name) {
		this.doct_depart_name = doct_depart_name;
	}


	public String getDrug_code() {
		return drug_code;
	}


	public void setDrug_code(String drug_code) {
		this.drug_code = drug_code;
	}


	public String getDrug_name() {
		return drug_name;
	}


	public void setDrug_name(String drug_name) {
		this.drug_name = drug_name;
	}


	public String getDrug_spec() {
		return drug_spec;
	}


	public void setDrug_spec(String drug_spec) {
		this.drug_spec = drug_spec;
	}


	public String getDrug_unit() {
		return drug_unit;
	}


	public void setDrug_unit(String drug_unit) {
		this.drug_unit = drug_unit;
	}


	public Date getFeeat() {
		return feeat;
	}


	public void setFeeat(Date feeat) {
		this.feeat = feeat;
	}


	public String getF_dep() {
		return f_dep;
	}


	public void setF_dep(String f_dep) {
		this.f_dep = f_dep;
	}


	public String getF_dep_cod() {
		return f_dep_cod;
	}


	public void setF_dep_cod(String f_dep_cod) {
		this.f_dep_cod = f_dep_cod;
	}


	public String getHospital_code() {
		return hospital_code;
	}


	public void setHospital_code(String hospital_code) {
		this.hospital_code = hospital_code;
	}


	public String getHospital_name() {
		return hospital_name;
	}


	public void setHospital_name(String hospital_name) {
		this.hospital_name = hospital_name;
	}


	public String getIs_drug() {
		return is_drug;
	}


	public void setIs_drug(String is_drug) {
		this.is_drug = is_drug;
	}


	public Long getMzxh() {
		return mzxh;
	}


	public void setMzxh(Long mzxh) {
		this.mzxh = mzxh;
	}


	public Long getNum() {
		return num;
	}


	public void setNum(Long num) {
		this.num = num;
	}


	public String getOutpatient_number() {
		return outpatient_number;
	}


	public void setOutpatient_number(String outpatient_number) {
		this.outpatient_number = outpatient_number;
	}


	public String getPatient_name() {
		return patient_name;
	}


	public void setPatient_name(String patient_name) {
		this.patient_name = patient_name;
	}


	public Long getPatient_no() {
		return patient_no;
	}


	public void setPatient_no(Long patient_no) {
		this.patient_no = patient_no;
	}


	public String getPrescribe_code() {
		return prescribe_code;
	}


	public void setPrescribe_code(String prescribe_code) {
		this.prescribe_code = prescribe_code;
	}


	public String getPrescribe_id() {
		return prescribe_id;
	}


	public void setPrescribe_id(String prescribe_id) {
		this.prescribe_id = prescribe_id;
	}


	public String getPrice() {
		return price;
	}


	public void setPrice(String price) {
		this.price = price;
	}


	public String getSys_type() {
		return sys_type;
	}


	public void setSys_type(String sys_type) {
		this.sys_type = sys_type;
	}


	public Double getTatol_price() {
		return tatol_price;
	}


	public void setTatol_price(Double tatol_price) {
		this.tatol_price = tatol_price;
	}


	public String getUse_day_num() {
		return use_day_num;
	}


	public void setUse_day_num(String use_day_num) {
		this.use_day_num = use_day_num;
	}
	
}
